import axios, { AxiosResponse, InternalAxiosRequestConfig } from "@ohos/axios";

export const http = axios.create({
  baseURL: 'http://localhost:573'
});

http.interceptors.request.use(
  (config: InternalAxiosRequestConfig) => {
    config.headers['token'] = 'token'
    return config;
  },
);

http.interceptors.response.use(
  (response: AxiosResponse) => {
    return response;
  },
)

